import request from '@/utils/request'

// 查询项目组织列表
export function listProjectOrganization(query) {
  return request({
    url: '/gs/projectOrganization/list',
    method: 'get',
    params: query
  })
}

// 查询项目组织详细
export function getProjectOrganization(id) {
  return request({
    url: '/gs/projectOrganization/' + id,
    method: 'get'
  })
}

// 新增项目组织
export function addProjectOrganization(data) {
  return request({
    url: '/gs/projectOrganization',
    method: 'post',
    data: data
  })
}

// 修改项目组织
export function updateProjectOrganization(data) {
  return request({
    url: '/gs/projectOrganization',
    method: 'put',
    data: data
  })
}

// 删除项目组织
export function delProjectOrganization(id) {
  return request({
    url: '/gs/projectOrganization/' + id,
    method: 'delete'
  })
}
